package com.trans.utils;

import com.trans.contants.StringConstant;

/**
 * @Author xwduo
 * @Description //TODO
 * @Date 2023-06-02 16:25
 */
public class StringUtils {

    public static String lowerFirst(String str){
        if(null != str ){
            if( ! StringConstant.EMPTY_STR.equals( str ) ) {
                char[] chars = str.toCharArray();
                String s = str.toLowerCase();
                char[] lowerCharArr = s.toCharArray();
                chars[0] = lowerCharArr[0];
                return new String(chars);
            }
            return str;
        }
        return null;
    }

    public static boolean isNotBlank(String str){
        return  ! isBlank(str);
    }

    public static boolean isBlank(String str){
        return  null == str || StringConstant.EMPTY_STR.equals(str.trim());
    }
}
